<%-- 
    Document   : friendList
    Created on : May 30, 2011, 2:28:04 PM
    Author     : Kevin
--%>

<%@page import="java.util.*"%>
<%@page contentType="text/html" import=" com.movie.*" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@include file="headerv.html"%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Friend List</title>
    </head>
    <body>
        <h1>My friends</h1><br><br>
        <% Viewer user = (Viewer) session.getAttribute("user");%>
        <% Set friendList = (Set) request.getAttribute("friendList");
            Iterator it = friendList.iterator();
            while (it.hasNext()) {
                Viewer v = (Viewer) it.next();%>
                <a href="dispatcher?operation=friendedinfo&id=<%=v.getIdviewer()%>"><%=v.getFirstname() %>&nbsp;<%=v.getLastname() %></a>
        <%}%>

    </body>
</html>
<%@include file="footer.html"%>